/**
 * Created by hasee on 2017/10/11.
 */
import React,{Component} from 'react';
import {
    AppRegistry,
    Text,
    View,
    Button
    } from 'react-native';

export default class AllContactsScreen extends React.Component {
    static navigationOptions={
        headerTitle: '看看啊',
        headerTitleStyle: {
            color: 'red'
        },
    };
    constructor(props) {
        console.log('初始化聊天constructor');
        super(props);
    }

    _press = ()=>{
        const {navigate} = this.props.navigation;

        navigate('ChatOne', {ss: "fsfsf"})
    };

    render() {

        console.log('初始化聊天');
        // console.log(this);
        console.log(this.props);
        return (
            <View>
                <Button
                    {...this.props}
                    onPress={this._press}
                    title="按一下"
                    />
            </View>
        )
    }
}